package com.lovenote.common.pojo;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

/**
 * 笔记分类对象
 * @author xingkong1221
 *
 */
@Entity
@Table(name = "common_note_catalog")
public class NoteCatalog implements Serializable {
	
	private static final long serialVersionUID = -4334296370508111715L;

	@Id
	@Column(name = "id", length = 5)
	@GenericGenerator(name = "generator", strategy = "increment")
	@GeneratedValue(generator = "generator")
	private int id;
	
	@Column(name = "user_id", nullable = false, length = 10)
	private long userId;
	
	@Column(name = "name", nullable = false, length = 30)
	private String name;
	
	@Column(name = "order_id", nullable = true, length = 5)
	private int orderId;
	
	@Column(name="note_number", nullable = false, length = 10)
	private int noteNumber;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public long getUserId() {
		return userId;
	}

	public void setUserId(long userId) {
		this.userId = userId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getOrderId() {
		return orderId;
	}

	public void setOrderId(int orderId) {
		this.orderId = orderId;
	}

	public int getNoteNumber() {
		return noteNumber;
	}

	public void setNoteNumber(int noteNumber) {
		this.noteNumber = noteNumber;
	}
}
